package com.planetarium.basics;

public class Coordinates {
	
	public double x = 0;
	public double y = 0;
	
	/*
	 * 
	 * Calculates the length of the vector going
	 * from (0, 0) to (x, y).
	 * 
	 */
	
    public double length() {
        return Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
    }
	
}
